/**
 * Copyright &copy; 2016-2017 <a href="http://git.oschina.net/whoamien/backend_management">Backend Management</a> All rights reserved.
 */
package com.xw.app.model;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import com.xw.framework.base.dao.BaseUpdatableEntity;

/**
 * The Class GeneratorConfig.
 *
 * @author Xi Wei
 */
@Entity
@Table(name="generator_config")
@DynamicUpdate(value=true)
@DynamicInsert(value=true)
public class GeneratorConfig extends BaseUpdatableEntity {

	@NotBlank
	@Length(max=45)
	private String configName;
	@Length(max=250)
	private String configValue;
	@Length(max=250)
	private String configDesc;
	
	/**
	 * Gets the config name.
	 *
	 * @return the config name
	 */
	public String getConfigName() {
		return configName;
	}
	
	/**
	 * Sets the config name.
	 *
	 * @param configName the new config name
	 */
	public void setConfigName(String configName) {
		this.configName = configName;
	}
	
	/**
	 * Gets the config value.
	 *
	 * @return the config value
	 */
	public String getConfigValue() {
		return configValue;
	}
	
	/**
	 * Sets the config value.
	 *
	 * @param configValue the new config value
	 */
	public void setConfigValue(String configValue) {
		this.configValue = configValue;
	}

	public String getConfigDesc() {
		return configDesc;
	}

	public void setConfigDesc(String configDesc) {
		this.configDesc = configDesc;
	}
	
	
	
}
